<?php
//require_once './vendor/autoload.php';

use Char0n\FFMpegPHP\Movie;

use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    print_r("dddddd");
});

Route::get('/ce', function () {
    print_r("ce");
});

Route::get('/db', function () {
//    return view('welcome');
//    $time = time()->toDateTimeString();
//    Cache::put('key111', 'value',10);
//    $cc = Cache::get('key111');
//    print_r($cc);

    print_r("ttt");
    DB::table('user1')->where(["id" => 1])->increment('age', 1);
    $aa = DB::table('user1')->find(1);
    print_r($aa);

});

Route::get('/ffmpeg', function () {
    $movie = new Movie('/root/big_buck_bunny.mp4');
    var_dump($movie->getDuration());
    var_dump($movie->getTitle());
    var_dump($movie->getYear());
    var_dump($movie->getFrameCount());
    var_dump($movie->getComment());
    var_dump($movie->getFilename());
    print_r($movie);
    print_r("aaaaa");


});

Route::get('queue', [\App\Http\Controllers\PodcastController::class, 'store']);





